import request from '@/utils/request'

let AssembleApi = {


 /*拼团活动列表*/
 activeList(data, errorback) {
   return request._post('/supplier/activity.assemble/index', data, errorback);
 },
 getProduct(data, errorback){
    return request._get('/supplier/activity.assemble/add', data, errorback);
 },
 addProduct(data, errorback){
    return request._post('/supplier/activity.assemble/add', data, errorback);
 },
 /*我的活动列表*/
 myList(data, errorback) {
   return request._post('/supplier/activity.assemble/my', data, errorback);
 },
 /*根据主键查询*/
 detailProduct(data, errorback){
    return request._get('/supplier/activity.assemble/edit', data, errorback);
 },
 /*根据主键查询*/
 saveProduct(data, errorback){
    return request._post('/supplier/activity.assemble/edit', data, errorback);
 },
 delProduct(data, errorback){
     return request._post('/supplier/activity.assemble/del', data, errorback);
 },

  addActive(data, errorback) {
    return request._post('/supplier/activity.assemble/addActive', data, errorback);
  },
  /*获取拼团活动数据*/
  editActive(data, errorback) {
    return request._get('/supplier/activity.assemble/editActive', data, errorback);
  },
  /*保存拼团活动*/
  saveActive(data, errorback) {
    return request._post('/supplier/activity.assemble/editActive', data, errorback);
  },
  /*删除拼团活动*/
  delActive(data, errorback) {
    return request._post('/supplier/activity.assemble/deleteActive', data, errorback);
  },
}
export default AssembleApi;
